package com.practice.car.cardataapp.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * suv_and_mpv_sales_ratio
 * @author
 */
@Data
public class SuvAndMpvSalesRatio implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private Integer idsuvAndMpvSalesRatio;

    /**
     * 车型，如SUV，MPV，三厢等等
     */
    private String type;

    /**
     * proportion：占比，统一是 double 类型，如果是 33.3%，则 proportion=33.3
     */
    private Double proportion;

    private static final long serialVersionUID = 1L;

    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + type.hashCode();
        return result;
    }
}
